<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script language="javascript">
function testSupport() { 
    if (navigator.geolocation) { 
        alert("支持 HTML5 Geolocation。"); 
    } else { 
        alert("该浏览器不支持 HTML5 Geolocation ！建议升级浏览器或安装插件（如 Gears）。"); 
    } 
}
testSupport();
</script>
</head>
<body>

</body>
</html>